﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using A2Z.BusinessObjects;
using System.Collections;
using A2Z.BusinessService;
using KYO.DAL;
using BusinessLayerHelper;

public partial class Control_ProjectImageList :ListControlBase<ProjectImage>
{


     ProjectService service = new ProjectService();


     public override PersistentList<ProjectImage> GetListObjects
       {
           get
           {
                    return  service.GetProjectImageList();
               
        
           }
       }

       protected void Page_Load(object sender, EventArgs e)
       {

           if (!IsPostBack)
           {
               ToolbarBox1.Header = "Project Image";
               List<UrlItem> urls = new List<UrlItem>();
               UrlItem url = new UrlItem();
               url.Text = "New";
               url.Url = DoAction.ActionPageView("ProjectImage", "Create");
               urls.Add(url);
            
               ToolbarBox1.Options = urls;

               LoadData();

           }
       }

    
}
